import request from '@/utils/request'
const apiUrl = '/api/abnormal-attendance-apply'
// 保存异常考勤申请
export function saveAbnormalAttendanceApply(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

// 获取异常考勤申请列表
export function getAbnormalAttendanceApplyList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

// 获取异常考勤申请详情
export function getAbnormalAttendanceApplyDetail(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

// 删除异常考勤申请
export function deleteAbnormalAttendanceApply(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 